<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="inc/CheckLogin.jsp" %>
<%@taglib uri="/struts-tags" prefix="s"  %>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta content="text/html; charset=GB2312" http-equiv="Content-Type">
<title>内容管理</title>
<link type="text/css" rel="stylesheet" href="images/style.Css">

</head>
<body>

<table width="100%" cellspacing="1" style="font-size: 13px;" cellpadding="3" border="0" bgcolor="#E1E1E1" class="css_table">
	<tbody><tr class="css_menu">
		<td colspan="8"><table width="100%" cellspacing="0" cellpadding="4" border="0" class="css_main_table">
					<tbody><tr>
						<td class="css_main"><a href="contentsAction!find.do">内容管理</a> <a href="contentsAction!findTypes.do">添加内容</a></td>
						<td class="css_search"><select id="DFieldKey" name="DFieldKey">
								<option value="ID">编号</option>
								<option value="Cid">栏目</option>
								<option selected="selected" value="Title">标题</option>
								<option value="Display">前台显示</option>
							</select>
							<input type="text" value="" size="10" id="Key" name="Key">
							<input type="submit" value="搜" name="Submit"></td>
					</tr>
				
			</tbody></table></td>
	</tr>
		<tr>
			<td width="30" class="css_top"><input type="checkbox" class="checkbox" id="chkall" name="chkall"></td>
			<td width="38" class="css_top">编号</td>
			<td class="css_top">标题</td>
			<td width="38" class="css_top"><a href="#">浏览</a></td>
			<td width="38" class="css_top"><a href="#">下载</a></td>
			<td width="38" class="css_top"><a href="#">推荐</a></td>
			<td width="90" class="css_top">管理</td>
		</tr>
		<s:iterator value="page.data" var="p">
		<tr>
			<td width="30" class="css_list"><input type="checkbox" class="checkbox" value="6" name="ids"></td>
			<td width="38" class="css_list">	<s:property value="#p.cid"/></td>
			<td class="css_list"><div align="left"> [<a href="contentsAction!get.do?id=<s:property value='#p.cid'/>">
	<s:property value="#p.tabTypes.tname"/>
 	</a>] &nbsp;<a href="contentsAction!get.do?id=<s:property value='#p.cid'/>">
 <s:property value="#p.ctitle"/>
</a> <a target="_blank" href="../Content.Asp?ID=6"><font color="#999999">预</font></a> </div></td>
			<td width="38" class="css_list"> <s:property value="#p.cviews"/></td>
			<td width="38" class="css_list"> <s:property value="#p.cdownNum"/></td>
			<td width="45" class="css_list"><span  style="cursor:hand;" id="ContentCommend6">
			 <s:if test="#p.cpush==0">
			  不推荐
			 </s:if>
			 <s:else>
			  推荐
			 </s:else>
			</span></td>
			<td width="90" class="css_list"><input type="button" value="修改" onclick="location.href='contentsAction!get.do?id=<s:property value='#p.cid'/>';" name="modify">
				<input type="button" value="删除" onclick="if(confirm('您确定要删除这条记录吗?')){location.href='contentsAction!del.do?id=<s:property value='#p.cid'/>';}" name="delete"></td>
		</tr>
		
</s:iterator>
		
		<tr class="css_page_list">
			<td colspan="8">
			<form action="contentsAction!find.do" method="post" name="frmData">
			                              <s:hidden name=""></s:hidden>
 <font color="red">
            <s:property
														value="page.totalCount" /> </font> </b>条记录- 分
											<b><font color="red"><s:property
														value="page.totalPage" /> </font> </b>页 - 这是第
											<b><font color="red"><s:property
														value="page.curPage" /> </font> </b>页&nbsp; | &nbsp;
											<a onClick="first()" href="#">首页</a>&nbsp;
											<a onClick="prev()" href="#">前一页</a>&nbsp;
											<a onClick="next()" href="#">后一页</a>&nbsp;
											<a onClick="last()" href="#">末页</a>&nbsp; | &nbsp; 到第
											<input id="page.curPage" name="page.curPage" type="text"
												size="4" maxlength="4" style='width: 30px; height: 18px;'
												value="<s:property value="page.curPage"/>"
												onKeyUp="onlyNum();">
											<input type="submit" value="跳转" class=mmBtn />
											<input type="hidden" name="page.pageSize"
												value="<s:property value="page.pageSize"/>" />
											<input type="hidden" name="totalPage"
												value="<s:property value="page.totalPage"/>" />
												</form>
				</td>
		</tr>
	
</tbody></table>

	<script type="text/javascript" src="<%=basePath %>js/list.js"></script>


</body></html>
